<?php
class NavigationForm extends Zend_Form {
    public function __construct($options = null) 
    {
        parent::__construct($options);
        
        $baseurl = new MHDEV_View_Helper_BaseUrl();
        
        $this->setName('Navigation');

        // Name
        $name = new Zend_Form_Element_Text('title');
        $name->setLabel('Bezeichnung');
        $name->setRequired(true);
        $name->addValidator('NotEmpty');
        $name->setErrorMessages(array(
            0 => 'Bitte geben Sie eine Bezeichnung ein'
        ));
        
		// Controller
        $controller = new Zend_Form_Element_Text('module');
        $controller->setLabel('Controller');
        $controller->setRequired(false);
        
        // Action
        $action = new Zend_Form_Element_Text('action');
        $action->setLabel('Action');
        $action->setRequired(false);
        
       	// Role
        $role = new Zend_Form_Element_Text('role');
        $role->setLabel('Benutzergruppen');
        $role->setDescription('Leer lassen um alle Benutzergruppen drauf zugreifen zu lassen.');
        $role->setRequired(false);

        // Sort ID
        $sort = new Zend_Form_Element_Text('sort_id');
        $sort->setLabel('Reihenfolge');
        $sort->setRequired(false);
        
        // Submit
        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setLabel('Abschicken');
        
        $this->addElements(array($name, $controller, $action, $role, $sort, $submit));
    }
}  
?>